package com.tutou.ikgroup.pojo.dto;

import com.tutou.ikgroup.pojo.po.Chatroom;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Transient;

@Data
@Accessors(chain = true)
@AllArgsConstructor
public class ChatDTO {
    private String senderId;
    private String senderName;
    private String receiverId;
    private String receiverName;
    private String receiverPhone;
    private String message;
    private Chatroom chatroom;

    public ChatDTO() {
        chatroom = new Chatroom();
    }

    public ChatDTO(String senderId, String receiverId, String message, Chatroom chatroom) {
        this.senderId = senderId;
        this.receiverId = receiverId;
        this.message = message;
        this.chatroom = chatroom;
    }
}
